/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package herenciaemppers;

/**
 *
 * @author ddpc
 */
public class Empleado extends Persona {
    int sueldo;
    
    Empleado(){
        System.out.println("introduce el sueldo");
        sueldo = teclado.nextInt();
    }
     public void imprimirsueldo(){
         System.out.println("cobra: "+sueldo);
     }
}
